<?php
class Model_User
{
    /**
     *
     * @var PDO
     */
    protected $_pdo;

    public function __construct() {
        try {
            $configDB = Zend_Registry::get("configDb");
            $this->_pdo = Zend_Db::factory($configDB['adapter'], $configDB['params']);
        } catch (Exception $exc) {
            echo $exc->getTraceAsString();
        }
    }

    public function __destruct() {
        $this->_pdo = null;
        unset($this->_pdo);
    }
}
?>
